package com.kylin.artwork.openapi.starter;

import org.axonframework.springboot.autoconfig.AxonServerAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 程序服务启动
 * @author Damon S.
 * @version v1.0.1
 * @date 2019年01月03日 20:41
 */
@EntityScan(basePackages = {"com.kylin.dal.entity",
        "org.axonframework.eventsourcing.eventstore.jpa",
        "org.axonframework.modelling.saga.repository.jpa",
        "org.axonframework.eventhandling.tokenstore.jpa"})
@EnableAspectJAutoProxy(proxyTargetClass = true)
@SpringBootApplication(
        scanBasePackages = {"com.kylin.artwork", "com.kylin.core",
                "com.kylin.dal", "com.kylin.domain", "com.kylin.biz"},
        exclude = AxonServerAutoConfiguration.class)
public class KylinApplication {
    public static void main(String[] args) {
        SpringApplication.run(KylinApplication.class, args);
    }
}
